
package com.studiofortress.sf.structure;

import com.studiofortress.sf.graphics.GraphicsGL;

/**
 * This defines a small event interface which can be implemented to allow
 * actions to be placed into the MainLoop and run on each frame.
 * 
 * @author Joseph Lenton
 */
public interface MainLoopEvent
{
    /**
     * The action that this MainLoopEvent will perform.
     * @param mainLoop The MainLoop that called the action method.
     */
    public abstract <G extends GraphicsGL> void action(MainLoop<G> mainLoop);
}
